ImageDecoder

open class ImageDecoder

iOS image decoder. Mirrors the JVM/Android decoder shape (an HTTP client + per-source dispatch), but uses ImageIO.framework via UIImage as the decode backend. Output is always RGBA8888 premultiplied — the simplest format to upload through the Kgl texImage2D(ByteArray) overload without needing platform-specific GL extensions.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
open suspend fun decodeImage(imageSource: ImageSource, imageOptions: ImageOptions?): ImageData?